package com.example.wac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wac.entity.system.RoleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 * 角色用户表 Mapper 接口
 * </p>
 *
 * @author wac
 * @since 2022-04-24
 */
@Mapper
public interface RoleInfoMapper extends BaseMapper<RoleInfo> {

    /**
     * 根据登录用户id获取角色code
     *
     * @param loginId
     * @return
     */
    Set<String> selectRoleCodeByLoginId(@Param("loginId") Integer loginId);

}
